import java.util.ArrayList;
import java.util.Collection;

class Movie{
    private String name;
    private  double score;
    private String actor;

    public Movie() {
    }

    public Movie(String name, double score, String actor) {
        this.name = name;
        this.score = score;
        this.actor = actor;
    }

    /*@Override
    public String toString() {
        return "Movie{" +
                "name='" + name + '\'' +
                ", score=" + score +
                ", actor='" + actor + '\'' +
                '}';
    }*/

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public String getActor() {
        return actor;
    }

    public void setActor(String actor) {
        this.actor = actor;
    }
}
public class Test {
    public static void main(String[] args) {
        Collection<Movie> movies=new ArrayList<>();
        movies.add(new Movie("123",8,"扎那个是"));
        movies.add(new Movie("1213",25,"asha"));
       // System.out.println(movies);
        for (Movie movie:movies
             ) {
            System.out.println(movie.getName());
            System.out.println(movie.getScore());
            System.out.println(movie.getActor());
        }
    }
}
